import $ from 'jquery';
global.$ = global.jQuery = $;
import { showMsg } from "./../../js/base/utils";
import "./../../js/layui/css/layui.css";
require("./../../js/layui/layui");
(function ($) {
    $(".hoverdo").each(function(){
        var that = $(this);
        $(this).on("click", function () {
            var chref = that.data("href");
            $.getJSON(chref, {}, function (responseText) {
                    if (responseText.data.fav) {
      
                    } else {
                        that.closest(".hover").empty();
                    }
            }, 'json');
            return false;
        });
    })

})(jQuery);
